<nav id="ticky-nav" class="navbar navbar-static-top navbar-skin" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="/admin/index">{{get_config('webname')}}</a>
            <ul class="nav navbar-nav navbar-top-links">
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#"><i class="fa fa-fw fa-plus"></i>新增</a>
                    <ul class="dropdown-menu">
                        <li><a target="main" onclick="breadcrumb('admin', 'content', 'add')" href="/admin/content/add/?action=add&tablename=news&modelid=1"><i class="fa fa-file-text fa-fw"></i> 文章</a>
                        <li><a target="main"onclick="breadcrumb('admin', 'content', 'add')" href="/admin/content/add/?action=add&tablename=product&modelid=2" ><i class="fa fa-product-hunt fa-fw"></i> 产品</a></li>
                        <li><a target="main" onclick="breadcrumb('admin', 'content', 'add')" href="/admin/content/add/?action=add&tablename=download&modelid=3"><i class="fa fa-download fa-fw"></i> 下载</a> </li>
                        <li><a target="main"onclick="breadcrumb('member', 'member', 'index')" href="/member/member/"><i class="fa fa-user fa-fw"></i> 会员</a> </li>
                    </ul>
                </li>
                <li><a id="site_domain" name="site_domain" href="{{$site.domain}}" target="_blank"><i class="fa fa-home fa-fw"></i> 站点首页</a></li>
            </ul>
        </div>
        <ul class="nav navbar-nav navbar-top-links navbar-right">
            <li class="dropdown">
            <li><a target="main" href="/admin/tools/clear_cache"  title="清除缓存">清除缓存</a></li>
            <li class="dropdown">
                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                    {{$username}} <i class="fa fa-caret-down"></i>
                </a>
                <ul class="dropdown-menu dropdown-user">
                    <li><a  href="javascript:;"  onclick="layer_open('修改资料', '/admin/member/change_password', '700', '400')"><i class="fa fa-user fa-fw"></i> 修改资料</a>
                    <li><a target="_blank" href="https://www.cnblogs.com/luomingui" ><i class="fa fa-qq fa-fw"></i> 问题反馈</a></li>
                    <li class="divider"></li>
                    <li><a  href="javascript:;"  onclick="logout()"><i class="fa fa-sign-out fa-fw"></i> 退出登录</a></li>
                </ul>
            </li>

            <li id="ticky-site" class="dropDown"><a class="dropdown-toggle" data-toggle="dropdown" href="#" id="ticky-skin-site">切换站点<i class="fa fa-caret-down"></i></a>
                <ul class="dropdown-menu">
                    {{get_sitehtml()}}
                </ul>
            </li>
            <li id="ticky-lang" class="dropDown"><a class="dropdown-toggle" data-toggle="dropdown" href="#" id="ticky-lang-title">语言<i class="fa fa-caret-down"></i></a>
                <ul class="dropdown-menu">
                    <li><a href="javascript:;" data-val="cn" title="默认（简体中文）">默认（简体中文）</a></li>
                    <li><a href="javascript:;" data-val="en" title="English">English</a></li>
                </ul>
            </li>
            <li id="ticky-skin" class="dropDown"><a class="dropdown-toggle" data-toggle="dropdown" href="#" id="ticky-skin-title">换肤<i class="fa fa-caret-down"></i></a>
                <ul class="dropdown-menu">
                    <li><a href="javascript:;" data-val="default" title="默认（蓝色）">默认（蓝色）</a></li>
                    <li><a href="javascript:;" data-val="black" title="黑色">黑色</a></li>
                    <li><a href="javascript:;" data-val="green" title="绿色">绿色</a></li>
                    <li><a href="javascript:;" data-val="red" title="红色">红色</a></li>
                    <li><a href="javascript:;" data-val="yellow" title="黄色">黄色</a></li>
                    <li><a href="javascript:;" data-val="orange" title="橙色">橙色</a></li>
                </ul>
            </li>
            <!-- /.dropdown -->
        </ul>
    </div>
    {{include template('public/sidebar','admin')}}
</nav>
